package com.ewili.x.special.service.data.impl;

import com.ewili.x.special.dao.inter.AmountStockDao;
import com.ewili.x.special.dao.inter.StockDao;
import com.ewili.x.special.service.data.inter.AmountStockService;
import com.ewili.x.special.task.thread.inter.AmountStockThreadTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wonder
 */
@Service
public class AmountStockServiceImpl implements AmountStockService {

    @Autowired
    private StockDao stockDao;

    @Autowired
    private AmountStockDao amountStockDao;


    @Autowired
    private AmountStockThreadTask amountStockThreadTask;


    @Override
    public void spide() {
        amountStockDao.deleteAll();
        amountStockThreadTask.doSpide();
    }
}
